package com.zelin.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "zelin-beijing")
public class FanoutListener2 {
    //1.监听消息
    @RabbitHandler
    public void getMessage(String message){
        System.out.println("zelin-beijing:"+message);
    }

}
